package com.zrt.bookstore3.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zrt.bookstore3.Domain.Book;
import com.zrt.bookstore3.Domain.Order;
import com.zrt.bookstore3.Domain.User;
import net.sf.ehcache.search.expression.Or;

import java.util.List;

public interface OrderService extends IService<Order> {
    boolean updateOrder(Order order);
    IPage<Book> getPage(int currentPage, int pageSize);
    IPage<Order> getPage(int currentPage, int pageSize, Order order);
    List<Order> selectByCondition(Order order);
    boolean updateStatusAndNumber(Order order);
    Order selectById(int id);
    boolean deleteById(int id);
    List<Order> selectAllData();
    List<Order> selectAllPay(int uid);
    boolean updateStatus(int status,int id);
    List<Order> selectAllByUid(int uid);
    boolean save(Order order);
}
